package com.ruoyi;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * 启动程序
 * 
 * @author ruoyi
 */
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@ComponentScan(basePackages = {"com.**"})
@MapperScan(basePackages = {"com.ruoyi.**.mapper"})
public class RuoYiApplication
{
    public static void main(String[] args)
    {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        ConfigurableApplicationContext context = SpringApplication.run(RuoYiApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  护士上门启动成功  http://localhost:" + context.getEnvironment().getProperty("server.port") + "\n" +
                "\n" +
                "  _ __  __          _ _           _         _    _  ____  \n" +
                " (_)  \\/  |        | (_)         | |  ____ | |  | |/ __ \\ \n" +
                "  _| \\  / | ___  __| |_  ___ __ _| | / __ \\| |__| | |  | |\n" +
                " | | |\\/| |/ _ \\/ _` | |/ __/ _` | |/ / _` |  __  | |  | |\n" +
                " | | |  | |  __/ (_| | | (_| (_| | | | (_| | |  | | |__| |\n" +
                " |_|_|  |_|\\___|\\__,_|_|\\___\\__,_|_|\\ \\__,_|_|  |_|\\____/ \n" +
                "                                     \\____/               \n" +
                "                                                          \n");
    }
}
